package com.csg.web.config;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


/**
 * rabbit 配置文件
 *
 * @author george
 */
@Configuration
public class RabbitConfig {

    /**
     * 消息队列名称
     */
    public static final String QUEUE_NAME_1 = "hello";

    /**
     * 声明消息队列
     *
     * @return 消息队列
     */
    @Bean
    public Queue hello() {
        return new Queue(QUEUE_NAME_1);
    }
}
